From: Adel Gadllah Date: Mon, 5 Oct 2009 16:21:51 +0000 (+0200) Subject: Don't create multiple copies of the (+) button X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10781 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6a8b50cb000bab39293d0f69a93bc5dce1c7934d;p=gnome-shell.git Don't create multiple copies of the (+) button Currently we recreate it every time Main.overview.show() is called, so destroy it to avoid having multiple copies floating around. https://bugzilla.gnome.org/show_bug.cgi?id=597309 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 4d5b37cbb..5f331a4aa 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -357,6 +357,10 @@ Overview.prototype = { this._activeDisplayPane.close(); this._workspaces.hide(); + this._addButton.actor.destroy(); + this._addButton.actor = null; + this._addButton = null; + // Create a zoom in effect by transforming the Overview group so that // the active workspace fills up the whole screen. The opposite // transition is used in show().